<?php
	// reffer to http://blog.csdn.net/ydmdzq_helloworld/article/details/5733673
	// http://hi.baidu.com/cpuramdisk/item/af2a1f15193cca711009b568
	// http://www.cnblogs.com/younglab/archive/2011/11/06/2238034.html
	$file_nm = htmlspecialchars($_GET["file_nm"]);
    //$handle = fopen('./txt/home_decorate.txt', 'r');
    $handle = fopen($file_nm, 'r');
    while(!feof($handle)){
        echo fgets($handle, 1024);
    }
    fclose($handle);
    
?>